﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="USU.MetricsMonitor.WebUI.Server" %>
<%@ Register TagPrefix="zgw" Namespace="ZedGraph.Web" Assembly="ZedGraph.Web" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Metrics Monitor</title>
    <link href="interfaceStyle.css" rel="stylesheet" type="text/css"/>
</head>
<body onload="Init()">
	   <form id="Form1" action="Default.aspx" runat="server">
	    <asp:ScriptManager ID="ScriptManager1" runat="server" />
	    <asp:UpdatePanel ID="UpdatePanel4" UpdateMode="Conditional" runat="server">
	        <ContentTemplate>
	            <asp:HiddenField id="HField1" Value="" runat="server"/>
	            <asp:HiddenField id="HField2" Value="" runat="server"/>
	            <ZGW:ZEDGRAPHWEB id="ZedGraphWeb" runat="server" RenderMode="ImageTag"
                    Visible="false" ></ZGW:ZEDGRAPHWEB> 
	        </ContentTemplate>
	    </asp:UpdatePanel>
	    <div id="content">
	    <asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Conditional" runat="server">
	        <ContentTemplate>
	            <asp:Label id="svnMsg"
	                ForeColor="Red"
	                runat="server"/>
	            <br/>
	            <label>Название проекта:</label>
	            <asp:DropDownList id="projectList" runat="server"/> 
	            <asp:Button id="Button1"
	                Text="Выбрать"
	                OnClick="ProjectSelected"
	                runat="server"/>
	            <asp:Button id="Button4"
	                Text="Обновить"
	                OnClick="OnUpdate"
	                runat="server"/>
	            <br/>
	            <asp:Label ID="LPeriod" 
                    ForeColor="DarkMagenta"
                    Text="" 
                    runat="server"/>
                <br />
	        </ContentTemplate>
	    </asp:UpdatePanel>

	    <asp:UpdatePanel ID="UpdatePanel2" UpdateMode="Conditional" runat="server">
	        <ContentTemplate>
	            <label>Начало периода:</label>
	            <asp:TextBox id="StartDate" runat="server"/>
	            <br/>
	            <label>Конец периода:</label>
	            <asp:TextBox id="EndDate" runat="server"/>
                <asp:Button id="Button2"
                    Text="Выбрать" 
                    OnClick="PeriodSelected" 
                    runat="server"/>
                <br/>
                <asp:CustomValidator id="TimestampValidator" 
                    Display="Static"
                    ErrorMessage="Задан неверный период"
                    EnableClientScript="false"
                    OnServerValidate="ServerValidation"
                    ForeColor="DarkGreen"
                    runat="server"/>
                <br />
            </ContentTemplate>
	    </asp:UpdatePanel>

	    <asp:UpdatePanel ID="UpdatePanel3" UpdateMode="Conditional" runat="server">
	        <ContentTemplate>
                <asp:TreeView id="MetricsUsersTree" 
                    ShowCheckBoxes="All"
                    ShowLines="true"
                    runat="server">
                </asp:TreeView>
                <asp:Button id="Button3"
                    Text="Показать"
                    OnClick="MetricsSelected"
                    runat="server"/>
                <br/>
                <asp:Label ID="MetricsSelectedLabel" 
                ForeColor="DarkSlateBlue"
                Text="" 
                runat="server"/>
            </ContentTemplate>
	    </asp:UpdatePanel>
	    
	    </div>
	  
	 </form>
</body>
<script language="jscript" type="text/jscript">
    <!--
    function Init() {
        try {
            Form1.HField1.value = document.body.clientWidth;
            Form1.HField2.value = document.body.clientHeight;
        }
        catch (e) {
        }     
    } 
    -->
</script>
</html>
